package com.atgouwu.mall.common.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor //@Data只能class类
public enum ResultEnum {
    SUCCESS(0, "成功"),
    ERROR(-1, "失败"),
    DATA_ERROR(500, "错误");
    private Integer code;
    private String message;
}
